From: Michael Albinus Date: Thu, 3 Sep 2009 13:21:04 +0000 (+0000) Subject: * tramp.texi (Frequently Asked Questions): New item for X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~10670 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=2088e3d84e3274aa4c938a824272218c53d6b7a1;p=emacs.git * tramp.texi (Frequently Asked Questions): New item for emacsclient. --- diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi index 20be7a2870f..5ac95d9ea73 100644 --- a/doc/misc/tramp.texi +++ b/doc/misc/tramp.texi @@ -3211,6 +3211,40 @@ I would like to thank all @value{tramp} users, who have contributed to the different recipes! +@ifset emacs +@item +How can I use @value{tramp} to connect to a remote @value{emacsname} +session? + +You can configure Emacs Client doing this. +@ifinfo +@xref{Emacs Server, , , @value{emacsdir}}. +@end ifinfo + +On the remote host, you start the Emacs Server: + +@lisp +(require 'server) +(setq server-host (system-name) + server-use-tcp t) +(server-start) +@end lisp + +Make sure, that the result of @code{(system-name)} can be resolved on +your local host; otherwise you might use a hard coded IP address. + +The resulting file @file{~/.emacs.d/server/server} must be copied to +your local host, at the same location. You can call then the Emacs +Client from the command line: + +@example +emacsclient @trampfn{ssh, user, host, /file/to/edit} +@end example + +@code{user} and @code{host} shall be related to your local host. +@end ifset + + @item How can I disable @value{tramp}?